package com.fsp.blog.pojo;

import lombok.Data;

/**
 * @author fushengping
 * @className Article
 * @description mybatis-plus的实体类映射必须使用包装类，不然在执行update时，会修改该字段基本类型的所有字段数据
 * @date 2021/11/4 22:33
 */
@Data
public class Article {

    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    private Long id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    /**
     * 作者id
     */
    private Long authorId;
    /**
     * 内容id
     */
    private Long bodyId;
    /**
     *类别id
     */
    private Long categoryId;

    /**
     * 置顶
     */
    private Integer weight;


    /**
     * 创建时间
     */
    private Long createDate;
}
